package com.design.future;

public class RealData implements Data {
    protected String data;

    public RealData(String data) {
        // ����sleep��������ʾRealData��������Ƿǳ�������
        try { Thread.sleep(1000);  } catch (InterruptedException e) { e.printStackTrace(); }
        this.data = data;
    }

    @Override
    public String getResult() throws InterruptedException {
        return data;
    }
}
